﻿using System;
using System.Collections.Generic;

namespace Yu.Cms.IDAL
{
    /// <summary>
	/// 接口层Tags
	/// </summary>
    public interface ITags
    {
        #region  成员方法

       
        
        /// <summary>
        /// 更新Tag文章数量
        /// </summary>
        /// <param name="tag"></param>
        /// <returns></returns>
        //int UpdateTagNum(string tag);

        /// <summary>
        /// 增加一条数据
        /// </summary>
        int AddTag(Yu.Cms.Model.Tags model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        int Update(Yu.Cms.Model.Tags model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        int Delete(int tagid);

        /// <summary>
        /// 删除一组
        /// </summary>
        /// <param name="tagid">1,2,3</param>
        /// <returns></returns>
        int DeleteList(string tagidlist);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        Yu.Cms.Model.Tags GetModel(int tagid);

        /// <summary>
        /// 获取所有TAG列表
        /// </summary>
        /// <returns></returns>
        IList<Yu.Cms.Model.Tags> GetTagList();

        #endregion  成员方法
    }
}
